import urllib.request

from selenium import webdriver


class blur(object):
    def __init__(self, filename):
        print("123")

    def blur_star(self):
        # browser = webdriver.Firefox()
        browser = webdriver.PhantomJS()
        print("开始混淆")
        browser.get("http://pyob.oxyry.com/")
        browser.find_element_by_class_name("editor").send_keys("123456")
        browser.find_element_by_class_name("obfuscate-btn").click()
        print("213")
        a = browser.find_element_by_class_name("dest").get_attribute()
        print(a)
        print("345")

if __name__ == "__main__":
    a = blur("123")
    a.blur_star()